* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

body {
    background: #323232;
    /* background: rgb(237, 237, 237); */
}

.root {
    position: relative;
    background-image: url('./img/background.jpg');
    background-size: 100% 100%;
    max-width: 66.67vh;
    margin: 0 auto;
    height: auto;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

.root .container-1 {
    display: flex;
    justify-content: space-around;
    padding-top: 2vh;
}

.time {
    height: 7.2vh;
    width: 30%;
    border: 1.04vh solid #8c6900;
    border-radius: 3.9vh;
    background-color: #f7e69a;
    background: linear-gradient(
        0.5turn,
        #fce687,
        #fce687 50%,
        #fdd639,
        #fdd639 50%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(1px + 1vw);
}

.money {
    font-size: calc(1px + 1vw);
    height: 7.2vh;
    width: 50%;
    border: 1.04vh solid #8c6900;
    border-radius: 3.9vh;
    background-color: #f7e69a;
    background: linear-gradient(
        0.5turn,
        #fce687,
        #fce687 50%,
        #fdd639,
        #fdd639 50%
    );
    display: flex;
    justify-content: center;
    align-items: center;
}

.root .container-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4%;
}

.cook-area {
    padding: 5% 0;
    height: 25%;
    width: 90%;
    border: 1.04vh solid #ffffff;
    border-radius: 3vh;
    background-color: #f7d13a;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.customer-area {
    position: absolute;
    bottom: 8%;
    padding-top: 5%;
    padding-bottom: 10%;
    width: 90%;
    border: 1.04vh solid #ffffff;
    border-radius: 3vh;
    background-color: #fca637;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.customer-area .column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5vh;
}

.customer-area .customer {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.customer-area .menu {
    height: 70%;
    width: 70%;
    margin-left: -3.5vh;
    bottom: -1vh;
    position: absolute;
}

.customer-area .people {
    width: 12.5vh;
    height: 12.5vh;
    border: 0.8vh solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(
        0.25turn,
        #dddddd,
        #dddddd 50%,
        #aaaaaa,
        #aaaaaa 50%
    );
    position: relative;
}

.waiting-customers .people,
.cook-area .people {
    width: 12.5vh;
    height: 12.5vh;
    border: 0.8vh solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(
        0.25turn,
        #dddddd,
        #dddddd 50%,
        #aaaaaa,
        #aaaaaa 50%
    );
}

.recruitment {
    width: 12.5vh;
    height: 12.5vh;
    border: 0.8vh solid #ffffff;
    border-radius: 50%;
    background-image: url('./img/cook-white.png');
    background-size: cover;
}

.recruitment .plus {
    display: block;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background: linear-gradient(#bd9979, #bd9979),
        linear-gradient(#bd9979, #bd9979);
    background-size: 30% 0.8vh, 0.8vh 30%;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 66.67vh;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
}

.start-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    background-color: #f7d13a;
    border: 1.04vh solid #ffffff;
    border-radius: 3vh;
    color: #886e09;
    text-align: left;
    font-weight: 400;

    display: flex;
    flex-direction: column;
}

.start-modal .container {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    padding-top: 2%;
}

.start-modal h2 {
    color: #000;
    font-weight: 500;
    margin: 2% 0;
    text-align: center;
}

.start-modal p {
    padding: 0 10%;
}

.start-modal .start-button {
    margin: 4% 0;
    padding: 2% 0;
    align-self: center;
    width: 85%;
    border: 0.4vh solid #826905;
    border-radius: 4vh;
    background-color: #f7e69a;
    background: linear-gradient(
        0.5turn,
        #fce687,
        #fce687 50%,
        #fdd639,
        #fdd639 50%
    );
    font-size: calc(14px + 1vw);
    cursor: pointer;
    color: #886e09;
}

.waiting-customers {
    position: absolute;
    width: 90%;
    bottom: 2%;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
}

.waiting-customers .people {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-image: url('./img/customer_3.png');
    background-size: contain;
    background-color: #5f94fe;
    cursor: pointer;
}

.waiting-customers .progress-container {
    width: 100%;
    height: 3.4vh;
    margin-bottom: -10%;
    border: 0.4vh solid #ffffff;
    border-radius: 0.4vh;
    background: #5f94fe;
    position: relative;
}

.waiting-customers .progress-bar {
    height: 100%;
    line-height: 125%;
    text-align: center;
    background: #426ed8;
}

.progress-container .text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 2.5vh;
    color: #ffffff;
    font-size: calc(1px + 1vw);
}

.message-container {
    position: absolute;
    top: 45%;
    left: 50%;
    margin-left: -30%;
    width: 60%;

    /* 采用flex弹性布局，让容器内部的所有消息可以水平居中，还能任意的调整宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message-container .message {
    padding: 3vh 2vh;
    font-size: calc(1px + 1vw);
    border-radius: 3vh;
    background-color: #eab298;
    border: 1vh solid #ffffff;

    /* 让消息内部的三个元素（图标、文本、关闭按钮）可以垂直水平居中 */
    display: flex;
    align-items: center;
}

.message-container .message .text {
    color: #a88636;
    font-weight: bold;
}

/* 通过渐变实现突变半透明阴影效果 */
.bg-primary {
    background-image: linear-gradient(to bottom, #ffe494 50%, #ffcf47 50%);
}
.bg-purple {
    background-image: linear-gradient(to right, #ac9aff 50%, #7b5cff 50%);
}
.bg-green {
    background-image: linear-gradient(to right, #77e300 50%, #009700 50%);
}
.bg-orange {
    background-image: linear-gradient(to right, #ff951c 50%, #e47100 50%);
}
.bg-brown {
    border-radius: 50%;
    background-image: linear-gradient(to right, #6c2000 50%, #421400 50%);
}
.bg-free {
    background-image: linear-gradient(to right, #dddddd 50%, #aaaaaa 50%);
}
.bg-wait {
    background-image: linear-gradient(to right, #1b8fff 50%, #0069e0 50%);
}

form {
    visibility: hidden;
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translate(-50%);
    background: #ffcf47;
    color: #906600;
    width: 95%;
    margin: 0 auto;
    border: 1vh solid #ffffff;
    border-radius: 4vh;
    padding: 0 2vh 0 2vh;
    font-size: calc(1px + 1vh);
    z-index: 20;
}

fieldset {
    border: 0.5vh solid #ca9800;
    background-color: #fff;
    color: #906600;
    padding: 1vh 2vh 6vh 2vh;
}

fieldset div {
    margin: 1vh 0;
}

form .legend {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1vh;
    font-size: calc(10px + 1vh);
}

form img {
    width: 25%;
    height: 25%;
    border: 0.8vh solid #ffffff;
    border-radius: 50%;
    margin-top: -5vh;
}

fieldset .item {
    display: flex;
    align-items: center;
    margin: 1vh 3vw;
}

.item label {
    flex-grow: 2;
    margin-left: 1vh;
}

.item .ellipsis {
    margin-right: 4vw;
}

.ok {
    margin: 4% 0;
    padding: 4% 0;
    align-self: center;
    width: 60%;
    border: 0.4vh solid #826905;
    border-radius: 4vh;
    background-color: #f7e69a;
    background: linear-gradient(
        0.5turn,
        #fce687,
        #fce687 50%,
        #fdd639,
        #fdd639 50%
    );
    font-size: calc(10px + 1vh);
    cursor: pointer;
    color: #886e09;
}

.exit {
    padding: 4% 0;
    align-self: center;
    width: 35%;
    border: 0.4vh solid #826905;
    border-radius: 4vh;
    background-color: #f7e69a;
    background: linear-gradient(
        0.5turn,
        #fce687,
        #fce687 50%,
        #fdd639,
        #fdd639 50%
    );
    font-size: calc(10px + 1vh);
    cursor: pointer;
    color: #886e09;
}

.form-button {
    display: flex;
    justify-content: space-between;
    bottom: 5vh;
}

legend {
    background-color: #000;
    color: #fff;
    padding: 3px 6px;
}
